Add upload template for webif, closes #590 and definitively #525
authorFlorian Fainelli <[email protected]>
Tue, 20 Jun 2006 10:02:34 +0000 (10:02 +0000)
committerFlorian Fainelli <[email protected]>
Tue, 20 Jun 2006 10:02:34 +0000 (10:02 +0000)
SVN-Revision: 4021

openwrt/package/webif/files/usr/lib/webif/form.awk

index 89530aef32c5f5a812eb76a5cb164e7de9e33b1b..808b99ebd92340e2752c81a2a676a08b8146c949 100644 (file)
@@ -80,6 +80,7 @@ $1 ~ /^caption/ { print "<b>" $2 "</b>" }
 $1 ~ /^string/ { print $2 }
 $1 ~ /^text/ { print "<input id=\"" $2 "\" type=\"text\" name=\"" $2 "\" value=\"" $3 "\" />" $4 }
 $1 ~ /^password/ { print "<input id=\"" $2 "\" type=\"password\" name=\"" $2 "\" value=\"" $3 "\" />" $4 }
+$1 ~ /^upload/ { print "<input id=\"" $2 "\" type=\"file\" name=\"" $2 "\"/>" }
 $1 ~ /^submit/ { print "<input type=\"submit\" name=\"" $2 "\" value=\"" $3 "\" />" }
 $1 ~ /^helpitem/ { form_help = form_help "<dt>@TR<<" $2 ">>: </dt>" }
 $1 ~ /^helptext/ { form_help = form_help "<dd>@TR<<" $2 ">> </dd>" }